
  const { ipcMain, ipcRenderer } = require("electron");
  window.onload=()=>{
    ipcRenderer.send("getMachineId");
    ipcRenderer.on("machineId", (event, arg) => {
      console.log(arg)
    });
    ipcRenderer.on('connection',function(){
      console.log('llllllllllll')
      alert('socket连接成功！')
    })
  }